package o;

import android.database.MatrixCursor;
import com.huawei.appmarket.service.webview.base.jssdk.control.FullAppStatus;

public class ebq {
    private static volatile ebq ˎ;
    private static final Object ॱ = new Object();
    private end ˊ = new b();
    private cmi ˏ;

    class b implements end {
        final /* synthetic */ ebq ˏ;

        private b(ebq o_ebq) {
            this.ˏ = o_ebq;
        }

        public void ॱ(FullAppStatus fullAppStatus) {
            switch (fullAppStatus.appType_) {
                case 1:
                    this.ˏ.ॱ(fullAppStatus.ˎ(), fullAppStatus.ˋ());
                    return;
                case 2:
                    this.ˏ.ˎ(fullAppStatus.ˎ(), fullAppStatus.ˋ());
                    return;
                case 4:
                    this.ˏ.ˏ(fullAppStatus.ˎ());
                    return;
                default:
                    return;
            }
        }
    }

    private ebq() {
        Logger.ˎ("MicroSearch", "MicroSearchWrapper init");
        this.ˏ = (cmi) fho.ˏ().ˋ("MicroSearch").ॱ(cmi.class);
    }

    public static ebq ॱ() {
        if (ˎ == null) {
            synchronized (ॱ) {
                if (ˎ == null) {
                    ˎ = new ebq();
                }
            }
        }
        return ˎ;
    }

    public MatrixCursor ॱ(String str, String[] strArr, String[] strArr2) {
        if (this.ˏ != null) {
            return this.ˏ.ˎ(str, strArr, strArr2);
        }
        return null;
    }

    public void ˎ(String str, int i) {
        if (this.ˏ != null) {
            this.ˏ.ˊ(str, i);
        }
    }

    public void ॱ(String str, int i) {
        if (this.ˏ != null) {
            this.ˏ.ˎ(str, i);
        }
    }

    public void ˏ(String str) {
        if (this.ˏ != null) {
            this.ˏ.ˊ(str);
        }
    }

    public void ˊ() {
        enf.ˋ().ˎ("MicroSearch", this.ˊ);
    }
}
